package com.sec.android.app.myfiles.activity;

import org.junit.Test;
import org.powermock.reflect.internal.WhiteboxImpl;

/**
 * Created by jaebae on 2016-12-05.
 */

public class testChangePasswordsActivity {
    @Test
    public void testOnCreate() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            WhiteboxImpl.invokeMethod(activity, "onCreate", null);
        } catch (Exception e) {
            e.printStackTrace();
        }

    }

    @Test
    public void testOnResume() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            WhiteboxImpl.invokeMethod(activity, "onResume");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testSipProcess() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            WhiteboxImpl.invokeMethod(activity, "sipProcess");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testOnPause() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            WhiteboxImpl.invokeMethod(activity, "onPause");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testInitViews() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            WhiteboxImpl.invokeMethod(activity, "initViews");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testOnFocusChange() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();

        try {
            activity.onFocusChange(null, false);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testOnDestroy() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            WhiteboxImpl.invokeMethod(activity, "onDestroy");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testOnSaveInstanceState() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            WhiteboxImpl.invokeMethod(activity, "onSaveInstanceState", null);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testOnRestoreInstanceState() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            WhiteboxImpl.invokeMethod(activity, "onRestoreInstanceState", null);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testOnConfigurationChanged() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            activity.onConfigurationChanged(null);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testOnClick() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            activity.onClick(null);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testOnBackPressed() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            activity.onBackPressed();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testDoCancel() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            WhiteboxImpl.invokeMethod(activity, "doCancel");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testHandleNext() {

        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            WhiteboxImpl.invokeMethod(activity, "handleNext");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testShowError() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            WhiteboxImpl.invokeMethod(activity, "showError", "12345", null);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testValidatePassword() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            WhiteboxImpl.invokeMethod(activity, "validatePassword", "12345");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testOnOptionsItemSelected() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            activity.onOptionsItemSelected(null);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testOnKeyDown() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            activity.onKeyDown(0, null);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testUpdateStage() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            WhiteboxImpl.invokeMethod(activity, "updateStage", null);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testAfterTextChanged() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            activity.afterTextChanged(null);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testBeforeTextChanged() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            activity.beforeTextChanged(null, 0, 0, 0);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testOnEditorAction() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            activity.onEditorAction(null, 0, null);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testShowKeyboard() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            WhiteboxImpl.invokeMethod(activity, "showKeyboard");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testHideKeyboard() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            WhiteboxImpl.invokeMethod(activity, "hideKeyboard");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void testIsChangePassword() {
        ChangePasswordsActivity activity = new ChangePasswordsActivity();
        try {
            WhiteboxImpl.invokeMethod(activity, "isChangePassword");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
